package top.xzxsrq.fileviewutils.fileFilter;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.io.filefilter.AbstractFileFilter;

import java.io.File;

@EqualsAndHashCode(callSuper = true)
@Data
public class FileFilter extends AbstractFileFilter {
    private int fileCount = 0;
    @Override
    public boolean accept(File file) {
        if(file.isDirectory()){
            return false;
        }
        fileCount++;
        return true;
    }
}
